{include file="public/header" /}
<style>
    .layui-form-label{
        padding: 9px 0;
        width: auto;
    }
</style>
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>任务详情信息</h5>
                </div>
                <div class="ibox-content layui-form">
                    <div class="layui-row layui-col-space10 layui-form-item ">
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">任务编号：</label>
                            <div class="layui-input-block">
                                <input type="text"  lay-verify="required" class="layui-input" value="{$info.task_number}" disabled>
                            </div>
                        </div>



                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">已完成任务数：</label>
                            <div class="layui-input-block">
                                <input type="text"  lay-verify="required" class="layui-input" value="{$info.task_done_num}" disabled>
                            </div>
                        </div>



                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">任务图片：</label>
                            <div class="input-group col-sm-5">
                                <img id="lunbo_image" height="100px"
                                     style="float:left;margin-left: 50px;margin-top: 20px;cursor:pointer;"
                                     src="{$info.task_image}"
                                     onerror="this.src='/static/admin/images/head_default.gif'" class="img-circle"/>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">任务类型：</label>
                            <div class="layui-input-block">
                                <input type="text"  lay-verify="required" class="layui-input" value="{$info.task_type_name}" disabled>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">类型说明：</label>
                            <div class="layui-input-block" style="width: 100%">
                                {if $info.task_type == 6}
                                {if $info.task_share_type==1}
                                <div class="item flex-wrap">
                                    <div class="item_left">分享类型：曝光率</div>
                                    <div class="flex-con color333"></div>
                                </div>
                                <br/>
                                <div class="item flex-wrap">
                                    <div class="item_left">总分享次数：{$info.task_share_num}</div>
                                    <div class="flex-con color333"></div>
                                </div>
                                <br/>
                                <div class="item flex-wrap">
                                    <div class="item_left">是否要审核：{if $info.task_share_submit==1}需要审核{else /}不需要审核{/if}</div>
                                    <div class="flex-con color333">

                                    </div>
                                </div>
                                <br/>
                                <div class="item flex-wrap">
                                    <div class="item_left">分享渠道：{in name="1" value="$info.task_share_qudao"}微信{/in}
                                        {in name="2" value="$info.task_share_qudao"} 朋友圈{/in}
                                        {in name="3" value="$info.task_share_qudao"} QQ{/in}
                                        {in name="4" value="$info.task_share_qudao"} 微博{/in}</div>
                                    <div class="flex-con color333">

                                    </div>
                                </div>
                                <br/>
                                {else /}
                                <div class="item flex-wrap">
                                    <div class="item_left">分享类型：到达率</div>
                                    <div class="flex-con color333"></div>
                                </div>
                                <br/>
                                <div class="item flex-wrap">
                                    <div class="item_left">总到达率：{$info.task_share_click}</div>
                                    <div class="flex-con color333"></div>
                                </div>
                                <br/>
                                <div class="item flex-wrap">
                                    <div class="item_left">是否分步骤：{if $info.task_share_d_fen==1}不分步骤{else /}分步骤{/if}</div>
                                    <div class="flex-con color333"></div>
                                </div>
                                <br/>
                                {if $info.task_share_d_fen==1}
                                <div class="item flex-wrap">
                                    <div class="item_left">是否要审核：{if $info.task_share_submit==1}需要审核{else /}不需要审核{/if}</div>
                                    <div class="flex-con color333">

                                    </div>
                                </div>
                                <br/>
                                <div class="item flex-wrap">
                                    <div class="item_left">分享渠道：{in name="1" value="$info.task_share_qudao"}微信{/in}
                                        {in name="2" value="$info.task_share_qudao"} 朋友圈{/in}
                                        {in name="3" value="$info.task_share_qudao"} QQ{/in}
                                        {in name="4" value="$info.task_share_qudao"} 微博{/in}</div>
                                    <div class="flex-con color333">

                                    </div>
                                </div>
                                <br/>
                                {else /}
                                <div class="item flex-wrap">
                                    <div class="item_left">每步骤完成时间：{$info.task_share_timeout} 小时</div>
                                    <div class="flex-con color333">

                                    </div>
                                </div>
                                <br/>
                                <div class="item flex-wrap">
                                    <div class="item_left">步骤列表：</div>
                                    <div class="flex-con color333">
                                        {if $sons}
                                        {volist name='sons' id='sss'}
                                        <p>第{++$key}步、</p>
                                        描述：{$sss.tf_desc}<br/>
                                        是否需要审核：{if $sss.tf_submit==1}需要审核{else /}不需要审核{/if}<br/>
                                        本步骤金额：{$sss.tf_money} 平台币<br/>
                                        分享渠道：
                                        {in name="1" value="$sss.tf_qudao"}微信{/in}
                                        {in name="2" value="$sss.tf_qudao"} 朋友圈{/in}
                                        {in name="3" value="$sss.tf_qudao"} QQ{/in}
                                        {in name="4" value="$sss.tf_qudao"} 微博{/in}
                                        <br/>
                                        <br/>
                                        {/volist}
                                        {/if}
                                    </div>
                                </div>
                                {/if}

                                {/if}
                                {/if}
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">任务名称：</label>
                            <div class="layui-input-block">
                                <input type="text"  lay-verify="required" class="layui-input" value="{$info.task_name}" disabled>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">任务区域：</label>
                            <div class="layui-input-block">
                                <input type="text"  lay-verify="required" class="layui-input" value="{$info.address}" disabled>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">任务总数：</label>
                            <div class="layui-input-block">
                                <input type="text"  lay-verify="required" class="layui-input" value="{$info.task_num}" disabled>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">单个任务金额：</label>
                            <div class="layui-input-block">
                                <input type="text"  lay-verify="required" class="layui-input" value="{$info.task_price}" disabled>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">任务总金额：</label>
                            <div class="layui-input-block">
                                <input type="text"  lay-verify="required" class="layui-input" value="{$info.task_money}" disabled>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">完成率：</label>
                            <div class="layui-input-block">
                                <input type="text"  lay-verify="required" class="layui-input" value="{$info.wcl}" disabled>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">任务开始时间：</label>
                            <div class="layui-input-block">
                                <input type="text"  lay-verify="required" class="layui-input" value="{$info.task_starttime}" disabled>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">任务结束时间：</label>
                            <div class="layui-input-block">
                                <input type="text"  lay-verify="required" class="layui-input" value="{$info.task_endtime}" disabled>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md10">
                            <label class="layui-form-label">任务简介：</label>
                            <div class="layui-input-block" id="LAY_editor" lay-verify="editor">
                                <p>{$info.task_content}</p>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <div class="layui-input-block">
                                <button class="layui-btn layui-btn-primary" onclick="history.go(-1)">返回</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{include file="public/footer" /}
<script>
    var editor = wk.wang({elem:'#LAY_editor'});
</script>
</body>
</html>
